import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { RecommendComponent } from './recommend.component';


const routes: Routes = [
  { path: '', component: RecommendComponent,
    children: [
      { path: '', redirectTo: 'details' },
      { path: 'details', loadChildren: () => import('../../../details/details.module').then(m => m.DetailsModule)},
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class RecommendRoutingModule { }
